package Lemon.p3;

import java.io.File;
import java.util.Objects;

/**
 * @author Lenovo
 */
public class Main
{
    public static void main(String[] args)
    {
        File file = new File("./test");
        if(file.isDirectory()){
            if(Objects.requireNonNull(file.list()).length>0){
                System.out.println("目录不为空!");
            }else{
                System.out.println("目录为空!");
            }
        }else{
            System.out.println("这不是一个目录!");
        }
    }
}